//
//  HXDiscountTCell.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/8.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXDiscountTCell.h"
#import "HXDishesModel.h"
#import "HX_Macro.h"
#import "HXTagsModel.h"
@implementation HXDiscountTCell
- (void)setDishesModel:(HXDishesModel *)dishesModel {
    _dishesModel = dishesModel;
    [self.imgHeader sd_setImageWithURL:[NSURL URLWithString:dishesModel.image]];
    self.lableName.text = dishesModel.dishes_name;
    self.detailLable.text = dishesModel.dishes_desc;
}
- (void)setArrBtns:(NSMutableArray *)arrBtns {
    _arrBtns = arrBtns;
    for (int i = 0; i < arrBtns.count; i++) {
        UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
        btn.titleLabel.font = [UIFont systemFontOfSize:10];
        [btn setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
        if (i < 3) {
            [btn setTitle:[arrBtns[i] text] forState:UIControlStateNormal];
            btn.frame = CGRectMake(i * (40 + 10) + 100, 80, 50, 10);
            [self.contentView addSubview:btn];
        }
        
        
    }
//    [self.btnFirst setTitle:[[self.arrBtns objectAtIndex:0] text] forState:UIControlStateNormal];
//    [self.btnSecond setTitle:[[self.arrBtns objectAtIndex:1] text] forState:UIControlStateNormal];
//    [self.btnThird setTitle:[[self.arrBtns objectAtIndex:2] text] forState:UIControlStateNormal];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
